﻿namespace eg_044_Reverse方法
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("《早发白帝城》");
            string[] poetry = new string[]{ "朝辞白帝彩云间","千里江陵一日还",
                                      "两岸猿声啼不住","轻舟已过万重山"};
            foreach (string sentence in poetry)
            {
                char[] chars = sentence.ToCharArray();  // 字符串转化为字符数组
                foreach (char item in chars.Reverse()) { Console.WriteLine(item); }
                Console.WriteLine();
            }
        }
    }
}